<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ConsultativeRestoreList.aspx.cs"
    Inherits="admin_Consultative_ConsultativeRestoreList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>资讯评论管理</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />
    <script type="text/ecmascript">
    
        function SelectAll()
        {
            // 找到所有的 input 元素
            var ctllist = window.document.form1.getElementsByTagName("input");
            var objcheckbox= document.form1.CheckBox2;
               
                for( var i = 0; i< ctllist.length; i++)
                {
                    if( ctllist[i].type == "checkbox")
                    {
                        if( ctllist[i].name.indexOf( "CheckBox1") >=0 )
                        {   
                            if(objcheckbox.checked==true)
                            {      
                                 ctllist[i].checked = true;
                            }
                            else
                            {
                                 ctllist[i].checked = false;
                            }
                        }
                    }
                
                 }
        
             
         }
    </script>

</head>
<body>
<form id="form1" runat="server">
<div class="itemtitle">
		<h3>
			操作提示</h3>
	</div>
	<div class="itemtitle_tect">
		<ul>
			<li>通过用户管理，您可以进行编辑会员资料、用户组、权限、积分、授权会员勋章以及删除会员等操作；</li>
			<li>请先根据条件搜索用户，然后选择相应的操作。</li>
		</ul>
	</div>
	<div class="clr"></div>
	<div class="talbe_border">
<asp:GridView ID="grdRestore" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
	Font-Overline="False" AllowPaging="True" OnRowDeleting="grdRestore_RowDeleting" GridLines="None" CssClass="talbe_list">
	<Columns>
		<asp:TemplateField>
			<ItemTemplate>
				<asp:CheckBox ID="CheckBox1" runat="server" />
			</ItemTemplate>
			<HeaderStyle CssClass="th20 tou" />
            <ItemStyle CssClass="nolet" />
		</asp:TemplateField>
		<asp:TemplateField HeaderText="信息标题">
			<ItemTemplate>
				<a href="ConsultativeRestoreDetail.aspx?ID=<%# Eval("ConsultativeID") %>">
					<%# Eval("Title") %>
				</a>
			</ItemTemplate>
			<ItemStyle CssClass="left2" />
		</asp:TemplateField>
		<asp:TemplateField HeaderText="评论人">
			<ItemTemplate>
					<%# Eval("UserName") %>
				</a>
			</ItemTemplate>
			<ItemStyle CssClass="th80" />
		</asp:TemplateField>
		<asp:TemplateField HeaderText="发布日期">
			<ItemTemplate>
				<%# GetShortDate(DataBinder.Eval(Container.DataItem, "AddDate").ToString())%>
			</ItemTemplate>
			<ItemStyle CssClass="th80" />
		</asp:TemplateField>
		<asp:TemplateField>
			<HeaderTemplate>
				操作选项
			</HeaderTemplate>
			<ItemTemplate>
				<asp:LinkButton ID="lbtnDelete" runat="server" CommandName="delete">删除</asp:LinkButton> | 
				<asp:LinkButton ID="lbtnShield" Font-Underline="false" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")+"|"+DataBinder.Eval(Container.DataItem, "Shield") %>'
					Text='<%# DataBinder.Eval(Container.DataItem, "Shield").ToString()== "True" ? "屏蔽" : "未屏蔽"%>'
					OnCommand="lbtnShield_Command"></asp:LinkButton>
			</ItemTemplate>
			<ItemStyle CssClass="th80" />
		</asp:TemplateField>
	</Columns>
	<HeaderStyle CssClass="header" />
</asp:GridView>
<asp:Label ID="lblPagination" runat="server" Text="Label"></asp:Label>
        </div>
    </form>
</body>
</html>
